<template>
        <el-dialog title="材料收集情况" top="5%" v-model="editFormVisible" :close-on-click-modal="false">
            <el-form ref="form" :model="form" :rules="rules" label-width="40px">
                <el-form-item label="">
                    <el-checkbox style="width: 250px" v-model="form.FCollection_1">1、项目可行性研究报告或项目建议书</el-checkbox>
                    <el-checkbox style="width: 250px" v-model="form.FCollection_2">2、营业执照</el-checkbox>
                </el-form-item>
                <el-form-item label="">
                    <el-checkbox  style="width: 250px" v-model="form.FCollection_3">3、项目备案</el-checkbox>
                    <el-checkbox  style="width: 250px" v-model="form.FCollection_4">4、环境影响报告批复或环境影响报告表</el-checkbox>
                </el-form-item>
                <el-form-item label="">
                    <el-checkbox style="width: 250px" v-model="form.FCollection_5">5、节能评估报告批复或节能登记证</el-checkbox>
                    <el-checkbox style="width: 250px" v-model="form.FCollection_6">6、土地建设规划批复</el-checkbox>
                </el-form-item>
                <el-form-item label="">
                    <el-checkbox style="width: 250px" v-model="form.FCollection_7">7、用地批复或土地证</el-checkbox>
                    <el-checkbox style="width: 250px" v-model="form.FCollection_8">8、银行存款证明</el-checkbox>
                </el-form-item>
                <el-form-item label="">
                    <el-checkbox style="width: 250px" v-model="form.FCollection_9">9、贷款意向书或贷款合同</el-checkbox>
                    <el-checkbox style="width: 250px" v-model="form.FCollection_10">10、上年度财务审计报告</el-checkbox>
                </el-form-item>
                <el-form-item label="">
                    <el-checkbox style="width: 250px" v-model="form.FCollection_11">11、本年财务报表</el-checkbox>
                    <el-checkbox style="width: 250px" v-model="form.FCollection_12">12、生产许可证</el-checkbox>
                </el-form-item>
                <el-form-item label="">
                    <el-checkbox style="width: 250px" v-model="form.FCollection_13">13、施工合同或发票</el-checkbox>
                    <el-checkbox style="width: 250px" v-model="form.FCollection_14">14、设备等材料采购合同或发票</el-checkbox>
                </el-form-item>
                <el-form-item label="">
                    <el-checkbox style="width: 250px" v-model="form.FCollection_15">15、施工照片或厂区现场照片</el-checkbox>
                    <el-checkbox style="width: 250px" v-model="form.FCollection_16">16、企业基本情况表</el-checkbox>
                </el-form-item>
                <el-form-item label="">
                    <el-checkbox style="width: 250px" v-model="form.FCollection_17">17、国税纳税情况</el-checkbox>
                    <el-checkbox style="width: 250px" v-model="form.FCollection_18">18、地税纳税情况</el-checkbox>
                </el-form-item>
                <el-form-item label="其他材料">
                    <el-input  :autosize="{ minRows: 2}" type="textarea" v-model="form.FCollection_19"></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click.native="editFormVisible = false">取 消</el-button>
                <el-button type="primary" @click="save" :loading="loading">保存</el-button>
            </div>
      </el-dialog>
</template>

<script>
    import util from '../../common/util'
    export default {
        data() {
            return {
                form: {},
                rules: {

                },
                loading:false,
                editFormVisible:false
            }
        },
        methods: {
            switchLoading(flag){
                this.loading = flag;
            },
            _openEdit(record,authEdit) {
                this.editFormVisible = true;
                this.form = Object.assign({},record,{Collections:""})
            },
            save:function () {
                util.post("server/customer/Project.ashx?cmd=Save",this.form,this.switchLoading,result=> {
                    util.msgSuc("保存成功")
                    this.editFormVisible = false
                    this.$emit("onSaveSuc",this.form)
                })
            }
        },
        mounted() {

        }
    }
</script>
